<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%
	request.setCharacterEncoding("UTF-8");
	ESKoreaProc eskor = new ESKoreaProc();
	String seq = "";
	String shortUrl = "";
	
	if(request.getParameter("forum")!=null){
		seq = ((SoptHashMap)RequestManager.getRequest(request)).get("FORUM").toString();
		shortUrl = eskor.getShortUrl(request,seq);
	}
	SoptHashMap hm = eskor.getForumBySeq(seq);
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="sopt.engSearch.ESKoreaProc"%>
<%@page import="comm.util.SoptHashMap"%>

<%@page import="comm.util.RequestManager"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<link href="../css/global.css" type="text/css" rel="stylesheet">
<%if(hm!=null){ %>
<title><%=hm.get("LOUNGE_TITLE") %> :: ESKorea Forum</title>
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../js/floatdiv.js"></script>
<script type="text/javascript" src="../js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="../js/swfobject.js"></script>
<script type="text/javascript" src="../js/engSearchIndex.js"></script>
<%} %>
</head>
<body>
<%if(hm!=null){ %>
	<div id="bgWrap">
		<div id="diaryWrap">
		</div>
		<div id="DiaryBtn">
				<a href="javascript:toggleDiary();"><img src="../images/diaryBtn.png" title="Diary using Twitter!" alt="toggleDiary"/></a>
		</div>
		<div id="forumBtn">
			<a href="javascript:toggleForum();"><img src="../images/forumBtn.png" title="Share your diary with Others!" alt="toggleForum"/></a>
		</div>
		<div id="forumLayer">
			
		</div>
		<div id="wrap">
			<div id="header">
				<span style="float:left">
					<a href="./"><img src="../images/logo.png" alt="ESKorea logo" title="ESKorea" width="90"/></a>
				</span>
				<div id="topMenuLayer">
					<a href="./aboutk.jsp">About(KOR)</a>
					|
					<a href="./aboute.jsp">About(ENG)</a>
					|
					<a href="./help.jsp">Help</a>
					|
					<a href="./credits.jsp">Credits</a>
				</div>
			</div>
			
			<div id="container">
				<div style="border-bottom:1px solid #CDCDCD;">
					<div class="forumItems" >
						<div class="forumTitle" style="font-size:17px;padding-bottom:5px;margin-bottom:8px;text-align: right;">
							<a href="<%=shortUrl %>"><%=shortUrl%></a>  <%=hm.get("LOUNGE_TITLE") %>
						</div>
						<div id="forumContent_<%=hm.get("LOUNGE_SEQ")%>" style="padding:15px 0;">
							<%=hm.get("LOUNGE_CONTENT").toString()%>
						</div>
						<div style="float:right;text-align: right;font-size:13px;">
							<span class="forumAuthor">by <a href="<%=hm.get("MEMBER_URL") %>" target="_blank"><%=hm.get("MEMBER_NICK") %></a></span>
							<div class="forumImg"><a href="<%=hm.get("MEMBER_URL") %>" target="_blank"><img src="<%=hm.get("MEMBER_IMG") %>"/></a></div>
							<div class="forumRegdate"><%=hm.get("LOUNGE_REGDATE") %></div>
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</div>
			
			<div id="footer">
				<span style="float:left">
					<img src="../images/graylogo.png" alt="ESKorea logo" title="ESKorea"/>
				</span>
				<span>Copyright S.O.P.T. All rights reserved.</span>
			</div>
		</div>
	
	</div>
	<%}else{ response.sendRedirect("./");}%>	
</body>
</html>